import { defineComponent, inject, reactive } from 'vue'
import './source-header.css'

export default defineComponent({
  name: 'GroupHeader',
  inject: ["getGraph", "getNode"],
  setup: () => {
    const getNode: any = inject('getNode')
    const state = reactive(getNode().getData())
    return () => {
      return (
        <div class="ax6-source-header-wrap">
          <div class="ax6-source-header-wrap-line"></div>
          <div class="ax6-source-header-text-wrap">
            <div class="ax6-source-header-text">
              {state.title}
            </div>
          </div>
        </div>
      )
    }
  },
})
